#include <stdio.h>
#include <cjson/cJSON.h>
#include <iostream>

int main()
{
    cJSON * root = cJSON_CreateObject();
    cJSON_AddStringToObject(root,"name","April");
    cJSON_AddNumberToObject(root, "age", 18);

    char * json_str = cJSON_Print(root);
    printf("%s\n", json_str);

    cJSON_free(json_str);
    cJSON_Delete(root);


    return 0;
}

